package com.lins.storedisk.dao;

import com.lins.disk.entity.UserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @Author linshuo
 * @Date 2023/12/1 11:15
 */

@Repository
public interface UserDao extends JpaRepository<UserEntity, Integer> {

    UserEntity findByUsernameOrPhone(String username,String phone);

    UserEntity findByUsername(String username);


}
